package com.jun.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

public class SnowflakeUtil {

  public static int createId() {
    Snowflake s = IdUtil.getSnowflake(1, 1);
    long id = s.nextId();
    return Integer.parseInt(String.valueOf(id).substring(0, 10)) ;
  }

}
